styleproperty: 3rd hotfix for a 3-line patch
authorBenjamin Otte <otte@redhat.com>
Tue, 10 Apr 2012 14:55:05 +0000 (16:55 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 10 Apr 2012 14:55:05 +0000 (16:55 +0200)
I really should not write code sometimes...

Copy/paste error this time.

gtk/gtkcssstyleproperty.c

index c9d4e564500a6c0baeda7c465cdcacccd8d58f51..8839cd68fbcb4f2bf078aea2bb357d250655a420 100644 (file)
@@ -466,7 +466,7 @@ _gtk_css_style_property_is_specified_type (GtkCssStyleProperty *property,
   /* XXX: Someone needs to fix that legacy */
   if ((_gtk_css_value_holds (property->initial_value, GDK_TYPE_RGBA) ||
        _gtk_css_value_holds (property->initial_value, GDK_TYPE_COLOR)) &&
-      type == GTK_TYPE_GRADIENT)
+      type == GTK_TYPE_SYMBOLIC_COLOR)
     return TRUE;
   if (_gtk_css_value_holds (property->initial_value, CAIRO_GOBJECT_TYPE_PATTERN) &&
       type == GTK_TYPE_GRADIENT)